

// Vue.config.productionTip = false

var app = new Vue({
    el: '#root',
    
    data: {
        title: 'hello',
        gender: 0,
        url:"www.domain.com/axb"
    },

    computed:{
        // filterGender(){
        //     return this.gender === 0 ? "男":'女'
        // },

    },

    filters:{
        filterGender(value, name){
            return (value === 0 ? "男":'女') + name
        },

        filterGenderName(value, other){
            return other + value 
        },

        filterUrl(value){
            value = value.replace('axb','3*5')
            return 'http://' + value
        }
    },

    mounted(){
        // console.log("----root----");
        // console.log("app counted");
    },
})

window.app = app